<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: cv::linemod::QuantizedPyramid Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="navpath" id="nav-path">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../d5/d08/namespacecv_1_1linemod.html">linemod</a></li><li class="navelem"><a class="el" href="../../d7/d6f/classcv_1_1linemod_1_1QuantizedPyramid.html">QuantizedPyramid</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pro-static-methods">Static Protected Member Functions</a> |
<a href="../../d1/daf/classcv_1_1linemod_1_1QuantizedPyramid-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::linemod::QuantizedPyramid Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span><div class="ingroups"><a class="el" href="../../d2/d3a/group__rgbd.html">RGB-Depth Processing</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<p>Represents a modality operating over an image pyramid.  
 <a href="../../d7/d6f/classcv_1_1linemod_1_1QuantizedPyramid.html#details">More...</a></p>
<p><code>#include &lt;opencv2/rgbd/linemod.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/da3/structcv_1_1linemod_1_1QuantizedPyramid_1_1Candidate.html">Candidate</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="../../df/da3/structcv_1_1linemod_1_1QuantizedPyramid_1_1Candidate.html" title="Candidate feature with a score. ">Candidate</a> feature with a score.  <a href="../../df/da3/structcv_1_1linemod_1_1QuantizedPyramid_1_1Candidate.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac2183d26730a4bb0bda2df6b020c12f4"><td align="right" class="memItemLeft" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d6f/classcv_1_1linemod_1_1QuantizedPyramid.html#ac2183d26730a4bb0bda2df6b020c12f4">~QuantizedPyramid</a> ()</td></tr>
<tr class="separator:ac2183d26730a4bb0bda2df6b020c12f4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a258730f1ea19c812d092eaff325b8457"><td align="right" class="memItemLeft" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d6f/classcv_1_1linemod_1_1QuantizedPyramid.html#a258730f1ea19c812d092eaff325b8457">extractTemplate</a> (<a class="el" href="../../d2/dc7/structcv_1_1linemod_1_1Template.html">Template</a> &amp;templ) const =0</td></tr>
<tr class="memdesc:a258730f1ea19c812d092eaff325b8457"><td class="mdescLeft"> </td><td class="mdescRight">Extract most discriminant features at current pyramid level to form a new template.  <a href="#a258730f1ea19c812d092eaff325b8457">More...</a><br/></td></tr>
<tr class="separator:a258730f1ea19c812d092eaff325b8457"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1c201c04dd31e2eee60e58f2676459d3"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d6f/classcv_1_1linemod_1_1QuantizedPyramid.html#a1c201c04dd31e2eee60e58f2676459d3">pyrDown</a> ()=0</td></tr>
<tr class="memdesc:a1c201c04dd31e2eee60e58f2676459d3"><td class="mdescLeft"> </td><td class="mdescRight">Go to the next pyramid level.  <a href="#a1c201c04dd31e2eee60e58f2676459d3">More...</a><br/></td></tr>
<tr class="separator:a1c201c04dd31e2eee60e58f2676459d3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1c2d4a406e0ae742e776f39f10685866"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d6f/classcv_1_1linemod_1_1QuantizedPyramid.html#a1c2d4a406e0ae742e776f39f10685866">quantize</a> (<a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;dst) const =0</td></tr>
<tr class="memdesc:a1c2d4a406e0ae742e776f39f10685866"><td class="mdescLeft"> </td><td class="mdescRight">Compute quantized image at current pyramid level for online detection.  <a href="#a1c2d4a406e0ae742e776f39f10685866">More...</a><br/></td></tr>
<tr class="separator:a1c2d4a406e0ae742e776f39f10685866"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-static-methods"></a>
Static Protected Member Functions</h2></td></tr>
<tr class="memitem:a8c9546d287bf178f6aab3d8067066b2a"><td align="right" class="memItemLeft" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d6f/classcv_1_1linemod_1_1QuantizedPyramid.html#a8c9546d287bf178f6aab3d8067066b2a">selectScatteredFeatures</a> (const std::vector&lt; <a class="el" href="../../df/da3/structcv_1_1linemod_1_1QuantizedPyramid_1_1Candidate.html">Candidate</a> &gt; &amp;candidates, std::vector&lt; <a class="el" href="../../d9/db9/structcv_1_1linemod_1_1Feature.html">Feature</a> &gt; &amp;features, size_t num_features, float distance)</td></tr>
<tr class="memdesc:a8c9546d287bf178f6aab3d8067066b2a"><td class="mdescLeft"> </td><td class="mdescRight">Choose candidate features so that they are not bunched together.  <a href="#a8c9546d287bf178f6aab3d8067066b2a">More...</a><br/></td></tr>
<tr class="separator:a8c9546d287bf178f6aab3d8067066b2a"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Represents a modality operating over an image pyramid. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ac2183d26730a4bb0bda2df6b020c12f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac2183d26730a4bb0bda2df6b020c12f4">◆ </a></span>~QuantizedPyramid()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual cv::linemod::QuantizedPyramid::~QuantizedPyramid </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a258730f1ea19c812d092eaff325b8457"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a258730f1ea19c812d092eaff325b8457">◆ </a></span>extractTemplate()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool cv::linemod::QuantizedPyramid::extractTemplate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d2/dc7/structcv_1_1linemod_1_1Template.html">Template</a> &amp; </td>
          <td class="paramname"><em>templ</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval, templ</td><td>=</td><td>cv.linemod_QuantizedPyramid.extractTemplate(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Extract most discriminant features at current pyramid level to form a new template. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">templ</td><td>The new template. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="a1c201c04dd31e2eee60e58f2676459d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c201c04dd31e2eee60e58f2676459d3">◆ </a></span>pyrDown()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::linemod::QuantizedPyramid::pyrDown </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.linemod_QuantizedPyramid.pyrDown(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Go to the next pyramid level. </p>
<dl class="todo"><dt><b><a class="el" href="../../dd/da0/todo.html#_todo000013">Todo:</a></b></dt><dd>Allow pyramid scale factor other than 2 </dd></dl>
</div>
</div>
<a id="a1c2d4a406e0ae742e776f39f10685866"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c2d4a406e0ae742e776f39f10685866">◆ </a></span>quantize()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::linemod::QuantizedPyramid::quantize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>dst</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.linemod_QuantizedPyramid.quantize(</td><td class="paramname">[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Compute quantized image at current pyramid level for online detection. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">dst</td><td>The destination 8-bit image. For each pixel at most one bit is set, representing its classification. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="a8c9546d287bf178f6aab3d8067066b2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8c9546d287bf178f6aab3d8067066b2a">◆ </a></span>selectScatteredFeatures()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void cv::linemod::QuantizedPyramid::selectScatteredFeatures </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="../../df/da3/structcv_1_1linemod_1_1QuantizedPyramid_1_1Candidate.html">Candidate</a> &gt; &amp; </td>
          <td class="paramname"><em>candidates</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../d9/db9/structcv_1_1linemod_1_1Feature.html">Feature</a> &gt; &amp; </td>
          <td class="paramname"><em>features</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t </td>
          <td class="paramname"><em>num_features</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>distance</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Choose candidate features so that they are not bunched together. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">candidates</td><td><a class="el" href="../../df/da3/structcv_1_1linemod_1_1QuantizedPyramid_1_1Candidate.html" title="Candidate feature with a score. ">Candidate</a> features sorted by score. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">features</td><td>Destination vector of selected features. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">num_features</td><td>Number of candidates to select. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">distance</td><td>Hint for desired distance between features. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/rgbd/<a class="el" href="../../d7/d7a/linemod_8hpp.html">linemod.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:48 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
